package nc.ui.ntb.outer;

import nc.ui.bd.ref.AbstractRefModel;

public class CalBodyNtbRefModel extends AbstractRefModel
{

    public CalBodyNtbRefModel(String refNodeName)
    {
        setRefNodeName(refNodeName);
    }

    public void setRefNodeName(String refNodeName)
    {
        m_strRefNodeName = refNodeName;
        setFieldCode(new String[] {
            "bodycode", "bodyname", "vnote", "bd_calbody.pk_corp", "area"
        });
        setHiddenFieldCode(new String[] {
            "pk_calbody"
        });
        setTableName("bd_calbody");
        setPkFieldCode("pk_calbody");
        setDefaultFieldCount(4);
        setWherePart(" 1=1 ");
        String strFomula = "getColValue(bd_corp, unitname, pk_corp ,bd_calbody.pk_corp)";
        setFormulas(new String[][] {
            new String[] {
                "bd_calbody.pk_corp", strFomula
            }
        });
        resetFieldName();
    }
    
}

